<?PHP
  abstract class Editor{
    
    protected $content = null;
    public   $page     = null; 
  
    abstract function display();
    abstract function getEditableCode();
    abstract function save($newPage,$oldPage);
    abstract function getHeader();
    abstract function __construct($page);
    
    function displayEditable(){
      echo $this->getEditableCode();
    }

    function displayBreadcrumb($separator,$class,$idpraefix){
      $i = 1;
      $breadcrumb = $this->page->getBreadcrumb();
      $host = Settings::getInstance()->get("host");
      while($i <= count($breadcrumb)){
        echo "<a href=\"".$host.$breadcrumb[$i-1][0].".html\" class=\"".$class."\" 
              id=\"".$idpraefix.$i."\">".$breadcrumb[$i-1][1]."</a>";
        if($i < count($breadcrumb)){
          echo $separator;
        }
        $i++;
      }
    }
  }
?>